<?php
if(isset($_GET['vid']) && isset($_GET['seq'])):
    $vid = $_GET['vid']; //venue's id
    $seq = $_GET['seq']; //image sequence
    $curdir = dirname($_SERVER['REQUEST_URI']);

    //check if venue image exists
    if(file_exists('venue_'.$vid.'_'.$seq.'.jpg')){
        echo "<img src='".$curdir."/venue_".$vid."_".$seq.".jpg' />";
    }
    else{
        echo "<img src='".$curdir."/../nopicture.jpg' />";
    }
endif;
?>
